$(function(){
	initDataGrid();
});

//动态加载datagrid
function initDataGrid(){
	var _datagrid=$('#datagrid');
	_datagrid.datagrid({
		url:rootPath +'/role/list',
		striped:true,
		singleSelect:true,
		height:320,
		columns:[[
			{field:'roleID',title:'角色ID',width:143},
			{field:'roleName',title:'角色名称',width:200},
			{field:'roleNameCN',title:'角色中文名称',width:200}
		]],
		pagination:true
	});
}